package com.joysuch.wwyt.api.dataaccess.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@ApiModel(value = "查询条件")
public class OrientationSearchBean implements Serializable {

    @ApiModelProperty(value = "建筑id,不需要传")
    private String buildId;

    @ApiModelProperty(value = "分页参数-当前页")
    private Integer page;

    @ApiModelProperty(value = "分页参数-每页显示条数")
    private Integer size;

    @ApiModelProperty(value = "报警模板独有-模板名称")
    private String templateName;

    @ApiModelProperty(value = "报警处理-id集合")
    private List<Long> ids;

    @ApiModelProperty(value = "标识符:作业票报警分页-pageCertificateAlarm;人员报警分页-pageAreaAlarm;车辆报警分页-pagCarAlarm;" +
            "作业票报警处理-solveCertificateAlarm;人员报警处理-solveAreaAlarm 人员报警处理-solveCarAlarm")
    private String flag;

    @ApiModelProperty(value = "报警处理-处理信息")
    private String handleInfo;

    @ApiModelProperty(value = "报警模板类型 1: 人员报警 2: 车辆报警")
    private Integer type;

    public OrientationSearchBean(String buildId) {
        this.buildId = buildId;
    }

    public OrientationSearchBean() {

    }

    public OrientationSearchBean(Integer page, Integer size, String flag) {
        this.page = page;
        this.size = size;
        this.flag = flag;
    }

    public OrientationSearchBean(List<Long> ids, String flag, String handleInfo) {
        this.ids = ids;
        this.flag = flag;
        this.handleInfo = handleInfo;
    }
}
